﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;
using SmartPhone.Un.Pro.DataContracts;
using SmartPhone.Un.Pro.BusinessLogic.Product;

namespace SmartPhone.Un.Pro.Web.Controllers
{
    public class HomeController : BaseController
    {
        public ActionResult Index()
        {
            ViewBag.Message = "Welcome to ASP.NET MVC!";

           

            //test custom Session
            Session.GetSessionData<String>("name");
            Session.SetSessionData<String>("name", "hello");

            Session.GetSessionData<string>("age");
            Session.SetSessionData<string>("age", "35");

           var xx= Session.GetSessionData<BrandInfo>("branch");
            BrandInfo b = new BrandInfo();
            b.BrandName = "tung";
            Session.SetSessionData<BrandInfo>("branch", b);

            IUnlockPhoneRepository
            
            return View();
        }

        public ActionResult About()
        {
            return View();
        }
    }
}
